import os
import time

def makeDIR():    
    timestat = timestamp = time.strftime('%Y-%m-%d',time.localtime(time.time())) 
    existdir = os.path.exists(timestat)
    if not existdir:
        os.mkdir(timestat)
        print("make dir:[%s]" % timestat)
    else:
        print('folder[%s] already exists' % timestat)

makeDIR()